package postpic.server.user;

import postpic.domain.User;

public class UserAction {
	
	private UserModel userModel;
	
	public UserAction() {
		userModel = new UserModel();
	}
	
	public User validateLogin(final String username, final String password) {
		return userModel.validateLogin(username, password);
	}
	
	public User registerUser(final String email, final String firstName, final String lastName, final String password) {
		return userModel.registerUser(email, firstName, lastName, password);
	}
	
	public User getUser(final Integer userId) {
		return userModel.getUser(userId);
	}
	
	public boolean addFriend(final String email, final User user) {
		return userModel.addFriend(email, user);
	}

}
